Ext.define('qjtravel.view.CommentDetail', {
    extend:'Ext.Panel',
    xtype:'commentDetail',

    requires:[
        'Ext.data.Store',
        'Ext.form.FieldSet',
        'Ext.field.Toggle'
    ],

    config:
    {
        scrollable:false,
        height:'100%',
        items:
        [
            {
                xtype:'titlebar',
                docked:'top',
                items:{
                    xtype:'button',
                    text:'返回',
                    handler:function(){
                        var backid = Ext.Viewport.getInnerItems().length - 2;
                        Ext.Viewport.remove(this.up('commentDetail'), true);
                        Ext.Viewport.setActiveItem(backid);
                    }
                }
            },
            {
                style:'margin:20px 10px 10px 10px;',
                cls:'font2 color2',
                html:'我的留言:'
            },
            {
                xtype:'fieldset',
                items:
                {
                    style:'margin:10px; line-height:22px;',
                    cls:'font1 color1',
                    html:'',
                    id:'messages',
                    height:'80px'
                }
            },
            {
                style:'margin:30px 10px 10px 10px;',
                cls:'font2 color2',
                html:'回复:'
            },
            {
                xtype:'fieldset',
                items:
                {
                    style:'margin:10px;  line-height:22px;',
                    cls:'font1 color1',
                    html:'',
                    id:'remessage',
                    height:'80px'
                }
            }
        ],listeners: {
        back:function() {
            var backid = Ext.Viewport.getInnerItems().length - 2;
            Ext.Viewport.remove(Ext.Viewport.getActiveItem(), true);
            Ext.Viewport.setActiveItem(backid);
        }
    }
    }
});


